home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / Demos / Donuts3D / gamemenu.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-31  |  937 b   |  48 lines

  1. //-----------------------------------------------------------------------------
  2. // File: GameMenu.h
  3. //
  4. // Desc: Code for in-game menus
  5. //
  6. // Copyright (C) 1999-2001 Microsoft Corporation. All Rights Reserved.
  7. //-----------------------------------------------------------------------------
  8. #ifndef GAMEMENU_H
  9. #define GAMEMENU_H
  10.  
  11.  
  12.  
  13.  
  14. //-----------------------------------------------------------------------------
  15. // Name: class CMenuItem
  16. // Desc: 
  17. //-----------------------------------------------------------------------------
  18. class CMenuItem
  19. {
  20. public:
  21.     TCHAR       strLabel[80];
  22.     DWORD       dwID;
  23.     CMenuItem*  pParent;
  24.  
  25.     CMenuItem*  pChild[10];
  26.     DWORD       dwNumChildren;
  27.  
  28.     DWORD       dwSelectedMenu;
  29.  
  30. public:
  31.     HRESULT Render( LPDIRECT3DDEVICE8 pd3dDevice, CD3DFont* pFont );
  32.     
  33.     CMenuItem* Add( CMenuItem* );
  34.  
  35.     CMenuItem( TCHAR* strLabel, DWORD dwID );
  36.     ~CMenuItem();
  37. };
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. #endif
  46.  
  47.  
  48.